package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Praise;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

@Mapper
public interface PraiseMapper {

    @POST("praise/getPraiseVideo")
    Observable<Res<Page<Praise>>> getPraiseVideo(@Body JsonMap map);

    @POST("praise/switchPraise")
    Observable<Res<Boolean>> switchPraise(@Body JsonMap map);

}